package com.fafi.spring.selfaop.test;


import com.fafi.spring.selfaop.test.config.Appconfig;
import com.fafi.spring.selfaop.test.dao.IndexDao;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * ����:
 * ������
 *
 * @author baomw
 * @create 2018-11-18 ���� 11:37
 */
public class Text {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext =
                new AnnotationConfigApplicationContext(Appconfig.class);
        annotationConfigApplicationContext.getBean(IndexDao.class).query2();
        annotationConfigApplicationContext.getBean(IndexDao.class).query();
    }

}
